import * as API from './'

export default{
    getGame:params=>{
        return API.GET('/games/index',params)
    },
    getDetail:params=>{
        return API.GET('/games/detailGame',params)
    },
    register:params=>{
        return API.POST('/user/doRegister',params)
    },
    login:params=>{
        return API.POST('/user/doLogin',params)
    },
    addShopCart:params=>{
        return API.POST('/user/addShopcar',params)
    },
    addCollection:params=>{
        return API.POST('/user/addCollections',params)
    },
    cartList:params=>{
        return API.GET('/user/shopCar',params)
    },
    collectionList:params=>{
        return API.GET('/user/collections',params)
    },
    deleteShopcar:params=>{
        return API.GET('/user/deleteShopcar',params)
    },
    deleteCollection:params=>{
        return API.GET('/user/deleteCollection',params)
    },
    comment:params=>{
        return API.GET('/user/comment',params)
    },
}
